package com.ysy.logistics.mapper.stock;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ysy.logistics.entities.stock.StoreGoods;
import com.ysy.logistics.entities.stock.dto.StoreGoodsDto;
import com.ysy.logistics.entities.supplier.SupGoods;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/4/3 17:41
 **/
public interface StoreGoodsMapper extends BaseMapper<StoreGoods> {
    Page<StoreGoodsDto> listByPage(@Param("page") Page<StoreGoodsDto> page, @Param("criteria") StoreGoodsDto criteria);

    /**
     * 根据商品类型统计商品总量
     * @param type 类型
     *
     * @return
     */
    Long totalGoodsNumByType(@Param(("type")) String type);
}
